package com.ttbj.api.dto.order;

import java.io.Serializable;
import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

public class OrderCustomDto extends OrderDto implements Serializable{
	
	private static final long serialVersionUID = 965561984748855763L;
	
	private Long ownerId;	//发件人id
	private String ownerName;	//发件人姓名
	private String ownerPhone;
	private String ownerAddr;	//发件人地址
	
	private Long rOwnerId;	//收件人id
	private String rOwnerName;	//收件人姓名
	private String rOwnerAddr;	//收件人地址
	
	private Long driverId;	//司机id
	private String driverRealName;	//司机真实名
	
	private Long truckId;	//货车id
	private String truckCarnum;	//货车牌号
	private String truckType;	//货车类型
	
	private Long cargoId;	//货物id
	private String cargoName;	//货物名
	
	
	private byte[] nickName;	//微信用户昵称
	private String viewNickName;	//页面上显示的昵称
	private String phone;	//微信用户手机号
	
	
	private Long comnumId;	//公司id
	private String comnumName;	//公司名
	
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private Date startDate;	//开始时间
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private Date endDate;	//结束时间
	
	
	@Override
	public String toString() {
		return "OrderCustomDto [ownerId=" + ownerId + ", ownerName=" + ownerName + ", ownerAddr=" + ownerAddr
				+ ", rOwnerId=" + rOwnerId + ", rOwnerName=" + rOwnerName + ", rOwnerAddr=" + rOwnerAddr + ", driverId="
				+ driverId + ", driverRealName=" + driverRealName + ", truckId=" + truckId + ", truckCarnum=" + truckCarnum
				+ ", truckType=" + truckType + ", cargoId=" + cargoId + ", cargoName=" + cargoName + ", viewNickName="
				+ viewNickName + ", phone=" + phone + ", startDate=" + startDate + ", endDate=" + endDate + "]";
	}
	
	public Long getOwnerId() {
		return ownerId;
	}
	public void setOwnerId(Long ownerId) {
		this.ownerId = ownerId;
	}
	
	public String getOwnerName() {
		return ownerName;
	}
	
	public void setOwnerName(String ownerName) {
		this.ownerName = ownerName;
	}
	
	public Long getrOwnerId() {
		return rOwnerId;
	}
	
	public void setrOwnerId(Long rOwnerId) {
		this.rOwnerId = rOwnerId;
	}
	
	public String getrOwnerName() {
		return rOwnerName;
	}
	
	public void setrOwnerName(String rOwnerName) {
		this.rOwnerName = rOwnerName;
	}
	
	public Long getDriverId() {
		return driverId;
	}
	
	public void setDriverId(Long driverId) {
		this.driverId = driverId;
	}
	
	public String getDriverRealName() {
		return driverRealName;
	}
	
	public void setDriverRealName(String driverRealName) {
		this.driverRealName = driverRealName;
	}
	
	public Long getTruckId() {
		return truckId;
	}
	
	public void setTruckId(Long truckId) {
		this.truckId = truckId;
	}
	
	public String getTruckCarnum() {
		return truckCarnum;
	}
	
	public void setTruckCarnum(String truckCarnum) {
		this.truckCarnum = truckCarnum;
	}
	
	public String getTruckType() {
		return truckType;
	}
	
	public void setTruckType(String truckType) {
		this.truckType = truckType;
	}
	
	public Long getCargoId() {
		return cargoId;
	}
	
	public void setCargoId(Long cargoId) {
		this.cargoId = cargoId;
	}
	
	public String getCargoName() {
		return cargoName;
	}
	
	public void setCargoName(String cargoName) {
		this.cargoName = cargoName;
	}
	
	public byte[] getNickName() {
		return nickName;
	}
	
	public void setNickName(byte[] nickName) {
		this.nickName = nickName;
	}
	
	public String getViewNickName() {
		return viewNickName;
	}
	
	public void setViewNickName(String viewNickName) {
		this.viewNickName = viewNickName;
	}
	
	public String getPhone() {
		return phone;
	}
	
	public void setPhone(String phone) {
		this.phone = phone;
	}
	
	public Date getStartDate() {
		return startDate;
	}
	
	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}
	
	public Date getEndDate() {
		return endDate;
	}
	
	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}
	
	public String getOwnerAddr() {
		return ownerAddr;
	}
	
	public void setOwnerAddr(String ownerAddr) {
		this.ownerAddr = ownerAddr;
	}
	
	public String getrOwnerAddr() {
		return rOwnerAddr;
	}
	
	public void setrOwnerAddr(String rOwnerAddr) {
		this.rOwnerAddr = rOwnerAddr;
	}
	
	public String getOwnerPhone() {
		return ownerPhone;
	}
	
	public void setOwnerPhone(String ownerPhone) {
		this.ownerPhone = ownerPhone;
	}
	
	public Long getComnumId() {
		return comnumId;
	}
	
	public void setComnumId(Long comnumId) {
		this.comnumId = comnumId;
	}
	
	public String getComnumName() {
		return comnumName;
	}
	
	public void setComnumName(String comnumName) {
		this.comnumName = comnumName;
	}
}
